package org.msd.controller;
import org.msd.model.Order;
import org.msd.service.iml.Orderservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;

@Controller
@RequestMapping("/payment")
public class paymentsuccessful {
   /*
   查询订单
    */
   @Autowired
   private Orderservice orderservice;
    @RequestMapping("all")
    @ResponseBody
    public List<Order> AllOrdel(){
     List<Order> orderList=orderservice.QuserOrder();//查询所有订单
     return orderList;
    }

}
